package com.yc.mybatis.damai.mapper;

import com.yc.mybatis.damai.bean.Orders;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

/**
 * Company 源辰信息
 *
 * @author navy
 * @date 2024/7/26
 * Email haijunzhou@hnit.edu.cn
 */
public interface OrdersMapper {

    Orders selectById(int id);

    @Insert(" insert into dm_orders (uid,aid,state) values(#{uid},#{aid},#{state})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    void insert(Orders orders);


}
